﻿clearForm("formEditor");

document.formEditor.tuid.value = "${fld:tuid}";
document.formEditor.project_id.value = "${fld:project_tuid}";
document.formEditor.project_name.value = "${fld:project_name}";
document.formEditor.master_name.value = "${fld:master_name}";
//setCheckboxValue("user_sex","${fld:user_sex}","formEditor");
document.formEditor.cun_name.value = "${fld:cun_name}";
document.formEditor.tun_name.value = "${fld:tun_name}";
//setCheckboxValue("is_local","${fld:is_local}","formEditor");
//setCheckboxValue("is_onechild","${fld:is_onechild}","formEditor");
//setCheckboxValue("single_status","${fld:single_status}","formEditor");
setCheckboxValue("is_touqin","${fld:is_touqin}","formEditor");
document.formEditor.remark.value = "${fld:remark}";
document.formEditor.address.value = "${fld:address}";
document.formEditor.hukoubu_serialno.value = "${fld:hukoubu_serialno}";
document.formEditor.fangzhao_serialno.value = "${fld:fangzhao_serialno}";
document.formEditor.dizhao_serialno.value = "${fld:dizhao_serialno}";
document.formEditor.check_date.value = "${fld:check_date@yyyy-MM-dd}";
document.formEditor.liangfang_remak.value = "${fld:liangfang_remak@js}";

//正房
document.formEditor.zf_number1.value = "${fld:zf_number1}";
document.formEditor.zf_area1.value = "${fld:zf_area1}";
document.formEditor.zf_level1.value = "${fld:zf_level1}";
document.formEditor.zf_price1.value = "${fld:zf_price1}";
document.formEditor.zf_remrmk1.value = "${fld:zf_remrmk1}";
document.formEditor.zf_number2.value = "${fld:zf_number2}";
document.formEditor.zf_area2.value = "${fld:zf_area2}";
document.formEditor.zf_level2.value = "${fld:zf_level2}";
document.formEditor.zf_price2.value = "${fld:zf_price2}";
document.formEditor.zf_remrmk2.value = "${fld:zf_remrmk2}";

//院内设施金额
document.formEditor.total_fee.value = "${fld:total_fee}";

//小房
document.formEditor.xf_area1.value = "${fld:xf_area1}";
document.formEditor.xf_level1.value = "${fld:xf_level1}";
document.formEditor.xf_price1.value = "${fld:xf_price1}";
document.formEditor.xf_total1.value = "${fld:xf_total1}";
document.formEditor.xf_area2.value = "${fld:xf_area2}";
document.formEditor.xf_level2.value = "${fld:xf_level2}";
document.formEditor.xf_price2.value = "${fld:xf_price2}";
document.formEditor.xf_total2.value = "${fld:xf_total2}";
document.formEditor.xf_area3.value = "${fld:xf_area3}";
document.formEditor.xf_level3.value = "${fld:xf_level3}";
document.formEditor.xf_price3.value = "${fld:xf_price3}";
document.formEditor.xf_total3.value = "${fld:xf_total3}";
document.formEditor.xf_area4.value = "${fld:xf_area4}";
document.formEditor.xf_level4.value = "${fld:xf_level4}";
document.formEditor.xf_price4.value = "${fld:xf_price4}";
document.formEditor.xf_total4.value = "${fld:xf_total4}";
document.formEditor.xf_area5.value = "${fld:xf_area5}";
document.formEditor.xf_level5.value = "${fld:xf_level5}";
document.formEditor.xf_price5.value = "${fld:xf_price5}";
document.formEditor.xf_total5.value = "${fld:xf_total5}";
document.formEditor.xf_area6.value = "${fld:xf_area6}";
document.formEditor.xf_level6.value = "${fld:xf_level6}";
document.formEditor.xf_price6.value = "${fld:xf_price6}";
document.formEditor.xf_total6.value = "${fld:xf_total6}";

//地窖、树（1-8年）、水井、畜禽舍棚、果树（1-7年）
document.formEditor.dijiao.value = "${fld:dijiao}";
document.formEditor.dijiao2.value = "${fld:dijiao2}";
document.formEditor.shu.value = "${fld:shu}";
document.formEditor.shu2.value = "${fld:shu2}";
document.formEditor.shuijin_shouya.value = "${fld:shuijin_shouya}";
document.formEditor.shuijin_shouya2.value = "${fld:shuijin_shouya2}";
document.formEditor.shuijin_qita.value = "${fld:shuijin_qita}";
document.formEditor.shuijin_qita2.value = "${fld:shuijin_qita2}";
document.formEditor.chuqinshepeng.value = "${fld:chuqinshepeng}";
document.formEditor.chuqinshepeng2.value = "${fld:chuqinshepeng2}";
document.formEditor.guoshu.value = "${fld:guoshu}";
document.formEditor.guoshu2.value = "${fld:guoshu2}";

//沼气池、院墙、猪圈、自来水、厕所、水泥台及方砖
document.formEditor.zhaoqichi.value = "${fld:zhaoqichi}";
document.formEditor.zhaoqichi2.value = "${fld:zhaoqichi2}";
document.formEditor.yuanqiang.value = "${fld:yuanqiang}";
document.formEditor.yuanqiang2.value = "${fld:yuanqiang2}";
document.formEditor.zhujuan.value = "${fld:zhujuan}";
document.formEditor.zhujuan2.value = "${fld:zhujuan2}";
document.formEditor.zilaishui.value = "${fld:zilaishui}";
document.formEditor.zilaishui2.value = "${fld:zilaishui2}";
document.formEditor.cesuo.value = "${fld:cesuo}";
document.formEditor.cesuo2.value = "${fld:cesuo2}";
document.formEditor.shuinishe.value = "${fld:shuinishe}";
document.formEditor.shuinishe2.value = "${fld:shuinishe2}";

//特殊果树
document.formEditor.teshuguoshu_l1.value = "${fld:teshuguoshu_l1}";
document.formEditor.teshuguoshu_l12.value = "${fld:teshuguoshu_l12}";
document.formEditor.teshuguoshu_l2.value = "${fld:teshuguoshu_l2}";
document.formEditor.teshuguoshu_l22.value = "${fld:teshuguoshu_l22}";
document.formEditor.teshuguoshu_l3.value = "${fld:teshuguoshu_l3}";
document.formEditor.teshuguoshu_l32.value = "${fld:teshuguoshu_l32}";
document.formEditor.teshuguoshu_l4.value = "${fld:teshuguoshu_l4}";
document.formEditor.teshuguoshu_l42.value = "${fld:teshuguoshu_l42}";
document.formEditor.teshuguoshu_l5.value = "${fld:teshuguoshu_l5}";
document.formEditor.teshuguoshu_l52.value = "${fld:teshuguoshu_l52}";

//电话、有线、门楼、院墙门
document.formEditor.dianhua.value = "${fld:dianhua}";
document.formEditor.dianhua2.value = "${fld:dianhua2}";
document.formEditor.youxiandianshi.value = "${fld:youxiandianshi}";
document.formEditor.youxiandianshi2.value = "${fld:youxiandianshi2}";
document.formEditor.menlou_yi.value = "${fld:menlou_yi}";
document.formEditor.menlou_yi2.value = "${fld:menlou_yi2}";
document.formEditor.menlou_er.value = "${fld:menlou_er}";
document.formEditor.menlou_er2.value = "${fld:menlou_er2}";
document.formEditor.fengbiyuanqiangmen.value = "${fld:fengbiyuanqiangmen}";
document.formEditor.fengbiyuanqiangmen2.value = "${fld:fengbiyuanqiangmen2}";
document.formEditor.banfengbiyuanqiangmen.value = "${fld:banfengbiyuanqiangmen}";
document.formEditor.banfengbiyuanqiangmen2.value = "${fld:banfengbiyuanqiangmen2}";

//单价赋值（除了正房小房）
document.formEditor.dijiao_policy.value = "${fld:dijiao_policy}";
document.formEditor.shu_policy.value = "${fld:shu_policy}";
document.formEditor.shuijin_shouya_policy.value = "${fld:shuijin_shouya_policy}";
document.formEditor.shuijin_qita_policy.value = "${fld:shuijin_qita_policy}";
document.formEditor.chuqinshepeng_policy.value = "${fld:chuqinshepeng_policy}";
document.formEditor.guoshu_policy.value = "${fld:guoshu_policy}";
document.formEditor.zhaoqichi_policy.value = "${fld:zhaoqichi_policy}";
document.formEditor.yuanqiang_policy.value = "${fld:yuanqiang_policy}";
document.formEditor.zhujuan_policy.value = "${fld:zhujuan_policy}";
document.formEditor.zilaishui_policy.value = "${fld:zilaishui_policy}";
document.formEditor.cesuo_policy.value = "${fld:cesuo_policy}";
document.formEditor.shuinishe_policy.value = "${fld:shuinishe_policy}";
document.formEditor.teshuguoshu_l1_policy.value = "${fld:teshuguoshu_l1_policy}";
document.formEditor.teshuguoshu_l2_policy.value = "${fld:teshuguoshu_l2_policy}";
document.formEditor.teshuguoshu_l3_policy.value = "${fld:teshuguoshu_l3_policy}";
document.formEditor.teshuguoshu_l4_policy.value = "${fld:teshuguoshu_l4_policy}";
document.formEditor.teshuguoshu_l5_policy.value = "${fld:teshuguoshu_l5_policy}";
document.formEditor.dianhua_policy.value = "${fld:dianhua_policy}";
document.formEditor.youxiandianshi_policy.value = "${fld:youxiandianshi_policy}";
document.formEditor.menlou_yi_policy.value = "${fld:menlou_yi_policy}";
document.formEditor.menlou_er_policy.value = "${fld:menlou_er_policy}";
document.formEditor.fengbiyuanqiangmen_policy.value = "${fld:fengbiyuanqiangmen_policy}";
document.formEditor.banfengbiyuanqiangmen_policy.value = "${fld:banfengbiyuanqiangmen_policy}";

document.forms["formEditor"].elements["deleteCommand"].style.display='none';
document.getElementById("divEditor").style.display='';
